function Http(url,type,data,success){
    $.ajax({
        url : url,
        type : type,
        contentType : 'application/json',
        dataType : 'json',
        data : data,
        success: function(result){
            success(result);
        }
    });
}

function HttpPost(url,data,success){
    $.ajax({
        url : url,
        type : "POST",
        contentType : 'application/json',
        dataType : 'json',
        data : JSON.stringify(data),
        success: function(result){
            success(result);
        }
    });
}
HttpGet = function(url,data,success){
    $.ajax({
        url : url,
        type : "GET",
        contentType : 'application/json',
        dataType : 'json',
        data : data,
        success: function(result){
            success(result);
        },
    });
}
